home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / machine / vastar.c < prev    next >
C/C++ Source or Header  |  2000-04-04  |  821b  |  44 lines

  1. /***************************************************************************
  2.  
  3.   machine.c
  4.  
  5.   Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
  6.   I/O ports)
  7.  
  8. ***************************************************************************/
  9.  
  10. #include "driver.h"
  11.  
  12.  
  13.  
  14. unsigned char *vastar_sharedram;
  15.  
  16.  
  17.  
  18. void vastar_init_machine(void)
  19. {
  20.     /* we must start with the second CPU halted */
  21.     cpu_set_reset_line(1,ASSERT_LINE);
  22. }
  23.  
  24. WRITE_HANDLER( vastar_hold_cpu2_w )
  25. {
  26.     /* I'm not sure that this works exactly like this */
  27.     if (data & 1)
  28.         cpu_set_reset_line(1,CLEAR_LINE);
  29.     else
  30.         cpu_set_reset_line(1,ASSERT_LINE);
  31. }
  32.  
  33.  
  34.  
  35. READ_HANDLER( vastar_sharedram_r )
  36. {
  37.     return vastar_sharedram[offset];
  38. }
  39.  
  40. WRITE_HANDLER( vastar_sharedram_w )
  41. {
  42.     vastar_sharedram[offset] = data;
  43. }
  44.